package com.vfa.fishing.common;

public class Constant {

    public static final int CELLS_HORIZONTAL = 16;
    public static final int CELLS_VERTICAL = 12;
    public static final int CELL_WIDTH = 32;
    public static final int CELL_HEIGHT = CELL_WIDTH;
    //cac huong di chuyen cua cac doi tuong
    public static final int RIGHT = 0;//
    public static final int LEFT = 1;
    public static final int RIGHT_UP = 2;
    public static final int RIGHT_DOWN = 3;
    public static final int LEFT_UP = 4;
    public static final int LEFT_DOWN = 5;
    
    //mang ca huong co the co sau khi va cham
    public static final int arrDirect1 [] = {LEFT,RIGHT_UP,RIGHT_DOWN,LEFT_UP,LEFT_DOWN};
    public static final int arrDirect2 [] = {RIGHT,RIGHT_UP,RIGHT_DOWN,LEFT_UP,LEFT_DOWN};
    public static final int arrDirect3 [] = {LEFT,RIGHT,RIGHT_DOWN,LEFT_UP,LEFT_DOWN};
    public static final int arrDirect4 [] = {LEFT,RIGHT_UP,RIGHT,LEFT_UP,LEFT_DOWN};
    public static final int arrDirect5 [] = {LEFT,RIGHT_UP,RIGHT_DOWN,RIGHT,LEFT_DOWN};
    public static final int arrDirect6 [] = {LEFT,RIGHT_UP,RIGHT_DOWN,LEFT_UP,RIGHT};
    
    //huong xuat hien cua cac doi tuong tren man hinh
    public static final int RIGHTSIDE = 0;
    public static final int LEFTSIDE = 1;
    
    // cac loai doi tuong
    public static final int FISH = 0;	//cá
    public static final int MOSS = 1;//rong rêu
    public static final int CRAB = 2;//cua
    public static final int ITEM = 3;// vật phẩm
    public static final int SHRIMP = 4;// tôm
    public static final int CUTLE = 5;//mực
    public static final int SHELl = 6;//mực
    public static final int PERSON = 7;// NGUOI CHOI

    public static boolean checkCollision(int x1, int y1, int x2, int y2,int x3, int y3){
        if(x1 >= x2 && x1 <= x3 && y1 >= y2 && y1 <= y3){
            return true;
        }
        else return false;
    }
}
